// SIFS ClientDlg.h : header file
//

#if !defined(AFX_SIFSCLIENTDLG_H__7FAD5466_E7B7_4703_B5B9_6A782E5A6DDF__INCLUDED_)
#define AFX_SIFSCLIENTDLG_H__7FAD5466_E7B7_4703_B5B9_6A782E5A6DDF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "btree.h"
#include <winsock.h>
#include <conio.h>
#define WM_UPDATE WM_USER + 1
/////////////////////////////////////////////////////////////////////////////
// CSIFSClientDlg dialog

class CSIFSClientDlg : public CDialog
{
// Construction
public:
	CSIFSClientDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CSIFSClientDlg)
	enum { IDD = IDD_SIFSCLIENT_DIALOG };
	CButton	m_stopBtn;
	CButton	m_listenBtn;
	CString	m_recinfo;
	int		m_channel;
	int		m_cnt;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSIFSClientDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL
friend static unsigned long __stdcall Listening(void * pThis);
// Implementation
protected:
	HICON m_hIcon;
	HANDLE   m_hBroadThread;
	SOCKET m_sockListener;
	// Generated message map functions
	//{{AFX_MSG(CSIFSClientDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnListen();
	afx_msg void OnStop();
	afx_msg LRESULT UpdateHandle(WPARAM nID,LPARAM lParam);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SIFSCLIENTDLG_H__7FAD5466_E7B7_4703_B5B9_6A782E5A6DDF__INCLUDED_)
